<!DOCTYPE html>
<html lang="en">

  <head>
    <meta charset="UTF-8">
    <title>key的原理</title>
  </head>

  <body>
    <div id="app">
      <h1>{{message}}</h1>
      <h1 v-for="(value,key,index) in obj">{{index}}-{{key}}-{{value}}</h1>
    </div>
    <script src="../js/vue.js"></script>
    <script>
      new Vue({
        el: "#app",
        data: {
          message: "对象列表展示",
          obj: {
            name: "jason",
            age: 18,
            sex: "male",
            love: () => {
              console.log("beautiful woman");
            }
          }
        }
      })
    </script>
  </body>

</html>